package com.gitee.wsl.doc.prosemirror.ui.command

import com.gitee.wsl.doc.prosemirror.state.Command
import com.gitee.wsl.doc.prosemirror.state.command.selection.deleteSelection

val Command.Companion.backspace: UiCommand
    get() = chainCommands(deleteSelection.toUiCommand(), joinBackward, selectNodeBackward)

val Command.Companion.del: UiCommand
    get() = chainCommands(deleteSelection.toUiCommand(), joinForward, selectNodeForward)
